<?php

namespace app\worker\controller;


class Index extends ApiBase
{
    public function index()
    {
        try {
            $data = [
                'user_id'=>1,
                'user_name'=>'小微',
            ];
            return show(config('status.success'), "登录成功", $data);
        } catch (\Exception $e) {
            echo 'Caught exception: ',  $e->getMessage(), "\n";
        } finally {
            echo 'This will always be executed.';
        }
    }
}
